package com.woniuxy.sales.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @TableName 评论表
 */
@TableName(value ="reviews")
@Data
public class Reviews implements Serializable {
    @TableId
    private Integer reviewId;  //评价id

    private Integer userId;  //用户id

    private Integer productId;  //车辆id

    private Integer rating;  //评分满分10分

    private String title;  // 评论标题

    private String reviewText;  //评价内容

    @TableField(fill = FieldFill.INSERT)
    private Date reviewDate;  //评价时间

    private Integer deleted;  //是否删除

    private static final long serialVersionUID = 1L;
}